﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DLGDetailView.aspx.cs" Inherits="DevSky.WebParts.DBConnectWP.DLGDetailView" MasterPageFile="~/_layouts/dialog.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderDialogHeaderPageTitle"  runat="server">
  dev-sky.net - Detail Dialog
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
  <SharePoint:ScriptLink ID="ScriptLink1" Language="javascript" Name="core.js" runat="server" />
  <SharePoint:FormDigest ID="FormDigest1" runat="server" />
  <link href="/_layouts/1033/styles/Themable/forms.css?rev=jBv2mfQnEZ0HhQvHMOlmFQ%3D%3D" rel="stylesheet" type="text/css"/>
  <style type="text/css">
  .dv-standardheader
  {
      font-size: 8pt;
  }
  .dv-formbody
  {  
    background-color: rgb(246, 246, 246);
    border-top-color: #d8d8d8;
    border-top-width: 1px;
    border-top-style: solid;
    background-attachment: scroll;
    background-repeat: repeat;
    background-position-x: 0%;
    background-position-y: 0%;
    padding-top: 3px;
    padding-right: 6px;
    padding-bottom: 4px;
    padding-left: 6px;
    vertical-align: top;
    
  }
  .dv-formlabel
  {
    text-align: left;
    color: #525252;
    font-family: Verdana;
    border-top-color: #d8d8d8;
    border-top-width: 1px;
    border-top-style: solid;
    padding-top: 3px;
    padding-right: 8px;
    padding-bottom: 6px;
    font-weight: bold;    
  }
  .dv-standardheader
  {
    margin: 0px;
  }
  .dv-formvalidation
  {
      
  }
  .dv-long
  {
      font-size: 8pt;
      font-family: Verdana, Sans-Serif;
      width: 386px;
  }
  
  .errorMessage
  {
      font-size: 8pt;
  }
 .ms-dialogHeaderDescription
 {
     font-size: 14pt;
     vertical-align: middle;
 }
 </style>
  <script src="/_layouts/SP.Core.js" type="text/javascript"></script>
  <script src="/_layouts/sp.ui.dialog.js" type="text/javascript"></script>

  <script src="/_layouts/DevSkyDBConnectWP/JS/jquery-1.7.1.min.js" type="text/javascript"></script>
  <script src="/_layouts/DevSkyDBConnectWP/JS/jquery.maskedinput-1.3.js" type="text/javascript"></script>

  <script type="text/javascript">
      function contentAdjustment() {
          var currentDialog = SP.UI.ModalDialog.get_childDialog();

          if (document.getElementById("dv-layoutTable")) {
              var contentHeight = document.getElementById("dv-layoutTable").offsetHeight;
              var contentWidth = document.getElementById("dv-layoutTable").offsetWidth;

              bodyMain.style.height = contentHeight + "px";
              bodyMain.style.width = contentWidth + "px";

              currentDialog.$Q_0(contentWidth + 33, contentHeight + 143);

              var $v_3 = SP.UI.Dialog.$26(SP.UI.Dialog.get_$1());
              var ypos = (SP.UI.Dialog.$1c(SP.UI.Dialog.get_$1()) - currentDialog.$2_0.offsetHeight) / 2 + $v_3;
              if (ypos < $v_3 + 10) {
                  ypos = $v_3 + 10;
              }
              var $v_2 = SP.UI.Dialog.$24(SP.UI.Dialog.get_$1());
              var xpos = (SP.UI.Dialog.$1d(SP.UI.Dialog.get_$1()) - currentDialog.$2_0.offsetWidth) / 2 + $v_2;
              if (xpos < $v_2 + 10) {
                  xpos = $v_2 + 10;
              }
              currentDialog.$m_0(xpos, ypos);
          }
          else {
              currentDialog.close(1);

          }
      }
      function pageLoad(sender, args) {
          window.setTimeout("contentAdjustment()", 1);
      }

      // http://digitalbush.com/projects/masked-input-plugin/
      // http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
      $(document).ready(function () {
          $('input[devskycstformat]').each(function (obj) {
              $(this).mask($(this).attr('devskycstformat'));
          });
          $('input[devskycsttooltip]').each(function (obj) {
              alert($(this).attr('devskycsttooltip'));              
          });
      });
  </script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderDialogImage" runat="server">
  <img src="/_layouts/images/DevSkySolutions/DlgHeaderDetailView.png" alt="Detail Dialog Logo" />
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="PlaceHolderDialogBodyHeaderSection" runat="server"></asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="PlaceHolderDialogDescription" runat="server">
  <div id="selectTermDescription" class="none-wordbreak">
    <asp:Label runat="server" ID="txtDialogTitle"></asp:Label>
  </div>
</asp:Content>

<asp:Content ID="Content8" ContentPlaceHolderID="PlaceHolderHelpLink" runat="server"></asp:Content>

<%-- 
http://www.learn-asp.net/asptutorials/DetailsView.aspx
http://www.asp.net/web-forms/tutorials/data-access/custom-formatting/custom-formatting-based-upon-data-cs
http://weblogs.asp.net/sukumarraju/archive/2009/09/27/details-view-updating-using-custom-edit-and-update-buttons.aspx
--%>

<asp:Content ID="Content6" ContentPlaceHolderID="PlaceHolderDialogBodyMainSection" runat="server">
    <asp:Panel runat="server" ID="dlgFields" style="padding-left: 12px; padding-top: 12px;"></asp:Panel>
</asp:Content>